//证件背包
import { cardBase } from "../Item/ItemBase";
import { BagBase, BagData } from "./bagBase";

//证件的背包
export class cardBag extends BagBase<cardBase>{
    bagData: BagData = {buyNum: 0, items: [], itemCount: 0};
    constructor(data) {
        super(
            { buyNum: 0, items: [], itemCount: 50 },
            data.itemTypes,
            data.bagType
        );
    }
    reduceTime() {
        for(let key in this._items) {
            this._items[key].reduceTime();
        }
    }

}